// ignore_for_file: avoid_print
import "dart:io";
import "package:coveralls/coveralls.dart";

/// Uploads a coverage report.
Future<void> main() async {
	try {
		final coverage = File("/path/to/coverage.report");
		await Client().upload(await coverage.readAsString());
		print("The report was sent successfully.");
	}

	on Exception catch (err) {
		print("An error occurred: $err");
		if (err is ClientException) print("From: ${err.uri}");
	}
}
